* {
  margin: 0;
  padding: 0;
}

ul,
ol,
li {
  list-style: none;
}

.main {
  margin: 20px auto;
  width: 400px;
  height: 500px;
  /* background-color: skyblue; */
  display: flex;
  flex-direction: column;
}

.main>.tag {
  height: 70px;
  display: flex;
}

.main>.tag>li {
  flex: 1;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
}

.main>.tag>li.active {
  background-color: #F7D59C;
  /* border-bottom: 5px #5E454B solid; */
  color: #333;
}

.main>.page {
  flex: 1;
  /* background-color: #CEE5D0; */
  position: relative;
}

.main>.page>li {
  position: absolute;
  width: 100%;
  height: 100%;
}

.page ul>li {
  margin: 0 20px;
  margin-top: 10px;
  height: 30px;
  line-height: 30px;
  font-size: 20px;
  border-bottom: 3px rgb(161, 185, 163) solid;
  display: flex;
}

.page ul>li>p:nth-of-type(1){
  width: 40px;
}

.page ul>li>p:nth-of-type(3) {
  width: 80px;
}

.page ul>p {
  margin-top: 20px;
  margin-right: 20px;
  height: 25px;
  color: #333;
  font-weight: 800;
  margin-left: 20px;
}

.page ul>p>label>input {
  margin-right: 10px;
}

.page ul>p>span {
  float: right;
}

.page ul>p>span>button:nth-of-type(1) {
  display: none;
}

.page ul>p>span>button.active {
  display: inline-block;
}

.page ul>li>p:nth-of-type(2) {
  flex: 1;
  overflow: hidden;
}

.page ul>li>p:nth-of-type(2)>input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 0;
  background-color: transparent;
  outline: none;
  font-size: 20px;
}

button {
  cursor: pointer;
  border: 0;
  padding: 3px;
  box-sizing: border-box;
  color: #333;
  font-weight: 800;
}

button:active{
  background-color: #999;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-left: 10px;
}

.addlist {
  width: 400px;
  margin: 30px auto;
  display: block;
  height: 30px;
  font-size: 23px;
  outline: none;
  border: 2px black solid;
  padding-left: 10px;
  box-sizing: border-box;
}

ol>li {
  overflow: hidden;
}